package org.backend.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.backend.pojo.entity.Address;

import java.util.List;

@Mapper
public interface AddressMapper {

    int add(Address address);

    int update(Address address);

    List<Address> getAddress(String openid, Integer userId);

    Address getAddressById(Integer id);

    void updateDefault();

    Address getDefaultAddress(String openid, Integer userId);
}
